home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d1 / lcd31a.arc / LCDTEST.BAT < prev    next >
DOS Batch File  |  1991-05-12  |  1KB  |  63 lines

  1. lcd %1 %2
  2. if errorlevel 9 goto bad_environment
  3. if errorlevel 8 goto out_of_memory
  4. if errorlevel 7 goto user_abort
  5. if errorlevel 6 goto no_parms
  6. if errorlevel 5 goto cant_create
  7. if errorlevel 4 goto database_error
  8. if errorlevel 3 goto scan_failed
  9. if errorlevel 2 goto cant_change
  10. if errorlevel 1 goto success_floppy
  11. if errorlevel 0 goto success
  12.  
  13. :cant_change
  14.     echo.
  15.     echo LCDTEST: unable to change to drive or directory
  16.     goto exit
  17.  
  18. :scan_failed
  19.     echo.
  20.     echo LCDTEST: scan of hard drive(s) failed
  21.     goto exit
  22.  
  23. :database_error
  24.     echo.
  25.     echo LCDTEST: database error
  26.     goto exit
  27.  
  28. :cant_create
  29.     echo.
  30.     echo LCDTEST: unable to create/remove directory
  31.     goto exit
  32.  
  33. :no_parms
  34.     echo.
  35.     echo LCDTEST: no parameters were specified
  36.     goto exit
  37.  
  38. :user_abort
  39.     echo.
  40.     echo LCDTEST: user aborted the program with the ESC key
  41.     goto exit
  42.  
  43. :bad_environment
  44.     echo.
  45.     echo LCDTEST: environment variable in wrong format
  46.     goto exit
  47.  
  48. :out_of_memory
  49.     echo.
  50.     echo LCDTEST: not enough memory to load database
  51.     goto exit
  52.  
  53. :success_floppy
  54.     echo.
  55.     echo LCDTEST: successful completion - ignoring floppy drive
  56.     goto exit
  57.  
  58. :success
  59.     echo.
  60.     echo LCDTEST: successful completion
  61.  
  62. :exit
  63.